package com.drinkian.business.room.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.drinkian.business.room.entity.po.Room;
import com.drinkian.business.room.entity.vo.VRoomGet;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface RoomMapper extends BaseMapper<Room> {
    // 添加房屋基本信息
    int addRoomBasic(Room room);
    // 添加房屋图片
    int addRoomImage(Long roomId,String imageUrl);
    // 直接查询
    IPage<VRoomGet> getRoomList(IPage<VRoomGet> page);
    // 模糊查询
    List<VRoomGet> searchRoom(String title);
    // 搜索房屋对应的图片
    List<String> getRoomImageList(Long roomId);
}
